package ben.samplegame.sprite;

import java.awt.Image;
import game.sprite.Background;
import game.sprite.PlayerSprite;
import game.sprite.Sprite;

public class SpaceBackground extends Background {

    public SpaceBackground (Image backgroundImage, int drawWidth, int drawHeight, int startX,
                            int startY) {
        super(backgroundImage, drawWidth, drawHeight, startX, startY);
      
    }

    @Override
    public void update(Sprite trackSprite) {
      this.setDrawCenter(trackSprite.getCenterCoordinate());  
    }

    @Override
    public void updateSprite () {
       
    }

    public boolean inBounds (Sprite s) {
        return (s.getX()>0 && s.getY()>0 && s.getX()<getGameWidth() &&s.getY()<getGameHeight());
    }

}
